﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Manager_aboutUs_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>远亚科电</title>
    <link href="../../Style/css/fontCss.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="5px"
        ShowBorder="false" ShowHeader="true" AutoHeight="true" AutoWidth="true" Title="远亚科电" >
        <Items>
    <ext:Grid ID="gridProduct" runat="server" EnableRowNumber="true" EnableCheckBoxSelect="false"
        Title="华能科电" AllowPaging="false" AutoHeight="True" ShowHeader="false" AutoWidth="true"
        OnRowCommand="gridProduct_RowCommand"
        DataKeyNames="ID" PageSize="10">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:TemplateField HeaderText="所属分类" ExpandUnusedSpace="true">
                <ItemTemplate>
                    <%#GetlmName(int.Parse(Eval("lmID").ToString()))%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField HeaderText="记录时间" Width="100px" DataFormatString="{0:d}" DataField="Recorddate" />
            <ext:WindowField HeaderText="编辑" Width="50px" Title="编辑" Text="编辑" DataIFrameUrlFormatString="Edit.aspx?ID={0}"
                WindowID="Win_Edit" DataIFrameUrlFields="ID" />
            <ext:LinkButtonField Width="50px" Text="删除" ConfirmText="确定删除？" HeaderText="删除" ConfirmTarget="Top"
                CommandName="Delete" />
        </Columns>
    </ext:Grid>
     </Items>
    </ext:Panel>
    <ext:Window ID="Win_Edit" runat="server" Height="600px" IsModal="true" Hidden="true"
        Popup="false" Title="" Width="800px" EnableIFrame="true" OnClose="Win_Close"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" Target="Parent" IFrameUrl="about:blank">
    </ext:Window>
    </form>
</body>
</html>
